home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000026_ishikawa@yk.rim.or.jp_Sun Apr 7 14:28:41 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  10KB  |  288 lines

  1. Article: 13297 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!iad-feed.news.verio.net!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.rim.or.jp!news.rim.or.jp!not-for-mail
  3. From: Ishikawa <ishikawa@yk.rim.or.jp>
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: a bug on GNU/linux: speed reset to unintended value occasionally.
  6. Date: Sun, 07 Apr 2002 16:41:16 +0900
  7. Organization: Ye 'Ol Disorganized NNTPCache groupie
  8. Lines: 265
  9. Message-ID: <3CAFF81C.8039CBF8@yk.rim.or.jp>
  10. NNTP-Posting-Host: pl493.nas911.n-yokohama.nttpc.ne.jp
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset=iso-2022-jp
  13. Content-Transfer-Encoding: 7bit
  14. X-Trace: news.rim.or.jp 1018165279 99035 210.139.38.237 (7 Apr 2002 07:41:19 GMT)
  15. X-Complaints-To: root@rim.or.jp
  16. NNTP-Posting-Date: Sun, 7 Apr 2002 07:41:19 +0000 (UTC)
  17. X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.17 i686)
  18. X-Accept-Language: ja, en
  19. Cache-Post-Path: duron!unknown@localhost
  20. X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
  21. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13297
  22.  
  23. Hello,
  24.  
  25. I have been an occasional user of Kermit over
  26. the years. Thank you for making the great package
  27. available. (Occassional may not be quite correct.
  28. Our Cisco router at the office is hooked to a
  29. Solaris box using a serial line and monitored by
  30. a kermit program on solaris. Not that I monitor
  31. cisco from this console all the time.)
  32.  
  33. Recently I noticed a bug of kermit on GNU/linux.
  34. So I would like to report this and
  35. see if others have seen the same bug.
  36.  
  37. The problem is that the connection
  38. speed is reset occasionally to an unintended
  39. setting upon return to kermit prompt a la "control-\ C"
  40. sequence.
  41. Usually this transition happens to a slower speed.
  42. (Well, come to think of the speed
  43. may have been set to unintended speed already
  44. when I issue "connect" command. I have no idea if
  45. this was why connections failed when the bug
  46. appeared.)
  47.  
  48. I first noticed this on RedHat GNU/linux 7.2
  49. that uses linux kernel 2.4.x (x being lower than 10, I think).
  50. The bug was noticed with the Kermit redhat binary/RPM available
  51. >from  Columbia university web page.
  52. (Now come to think of it, I *may* have downloaded
  53. a version from somewhere where new kermit RPM package was
  54. made available. But the bug persists with a Columbia-built
  55. binary on Debian GNU/Linux, too. See below.)
  56.  
  57. Today I rechecked the existence of the bug
  58. on a Debian GNU/Linux (that uses 2.4.17 kernel.
  59. I subustituted the kernel on my own.) and using the
  60. binary from Columbia university. I downloaded the
  61. kermit fresh from the web page.
  62. I could capture a log that shows the bug.
  63.  
  64. Here is a relevant part of the
  65. log captured using "script" command
  66. on GNU/linux.
  67. I sanitized the log a little bit by
  68. deleting the misspelled command lines, etc..
  69.  
  70. Since the bug (resetting to an unintended speed)
  71. appears on two different GNU/Linux platforms
  72. I suspect that the bug is very likely to be
  73. in the GNU/linux version of KERMIT, but I will not rule
  74. out the possibility of linux tty driver.
  75. (I recall that solaris v7 kermit had a bug in that
  76. it used the wrong path in the source code about
  77. two years ago. It had something to do with
  78. either using TERMINFO or POSIX style tty handling.
  79. This was fixed with my discovery and input.
  80. Thank you for fixing the bug very quickly back then.
  81. I hope this new bug on GNU/linux can be fixed
  82. in a similar manner.)
  83.  
  84. REPEAT-BY:
  85.  
  86. I am not sure if this is truely
  87. reproducibile. I have not checked if
  88. the bug is history-sensitive. It might as well be.
  89. On RedHat GNU/Linux, when I noticed the bug,
  90. usually I tried to set the speed to 38400 or 19200
  91. and tweak the parity setting using "set parity hardware"
  92. to obtain full 8bit data  and even parity. (8E1).
  93. While I tweak these settings and find the
  94. communication failure and come back to the prompt
  95. I found that the speed is reset inadvertedly.
  96. (I had thought that resetting parity or
  97. data bytesize may be responsible, but
  98. >from  what I see in the following short log,
  99. simply connecting and reverting to the prompt
  100. may reset the speed occasionally under
  101. certain conditions. And the speed may be
  102. reset upon connection if I am not mistaken when
  103. the bug appears.)
  104.  
  105. Please note in the following log
  106. the connection speed was found to be 1800 upon
  107. exit to kermit prompt near the end.
  108. It had been set to 19200 previously.
  109. So it could have been reset when the connection was made
  110. or when the connection was temporarily suspended
  111. and kermit prompt appeared.
  112.  
  113. On my experience on RedHat GNU/Linux 7.2,
  114. the speed was often reset to 2400 from 38400/19200.
  115. Something IS wrong in GNU/linux and kermit combination.
  116.  
  117.  
  118. ishikawa@duron$ su
  119. Password:
  120. duron:/home/ishikawa# kermit
  121. C-Kermit 8.0.201, 8 Feb 2002, for Linux
  122.  Copyright (C) 1985, 2002,
  123.   Trustees of Columbia University in the City of New York.
  124. Type ? or HELP for help.
  125. (/home/ishikawa/) C-Kermit>set line /dev/ttyS0
  126. (/home/ishikawa/) C-Kermit>show
  127. Show what?  (Type "show ?" for a list of possiblities.)
  128. (/home/ishikawa/) C-Kermit>show communications
  129.  
  130. Communications Parameters:
  131.  Line: /dev/ttyS0, speed: 9600, mode: local, modem: generic
  132.  Parity: none, stop-bits: (default) (8N1)
  133.  Duplex: full, flow: rts/cts, handshake: none
  134.  Carrier-watch: auto, close-on-disconnect: off
  135.  Lockfile: /var/lock/LCK..0
  136.  Terminal bytesize: 8, escape character: 28 (^\)
  137.  
  138.  Carrier Detect      (CD):  Off
  139.  Dataset Ready      (DSR): Off
  140.  Clear To Send      (CTS): Off
  141.  Ring Indicator      (RI):  Off
  142.  Data Terminal Ready (DTR): On
  143.  Request To Send     (RTS): On
  144.  
  145. Type SHOW DIAL to see DIAL-related items.
  146. Type SHOW MODEM to see modem-related items.
  147.  
  148. (/home/ishikawa/) C-Kermit>set speed 38400
  149. /dev/ttyS0, 38400 bps
  150. (/home/ishikawa/) C-Kermit>set parity hardware
  151. (/home/ishikawa/) C-Kermit>set flow-control none
  152. (/home/ishikawa/) C-Kermit>set parity none
  153. (/home/ishikawa/) C-Kermit>show comm
  154.  
  155. Communications Parameters:
  156.  Line: /dev/ttyS0, speed: 38400, mode: local, modem: generic
  157.  Parity: none, stop-bits: (default) (8N1)
  158.  Duplex: full, flow: none, handshake: none
  159.  Carrier-watch: auto, close-on-disconnect: off
  160.  Lockfile: /var/lock/LCK..0
  161.  Terminal bytesize: 8, escape character: 28 (^\)
  162.  
  163.  Carrier Detect      (CD):  Off
  164.  Dataset Ready      (DSR): Off
  165.  Clear To Send      (CTS): Off
  166.  Ring Indicator      (RI):  Off
  167.  Data Terminal Ready (DTR): On
  168.  Request To Send     (RTS): On
  169.  
  170. Type SHOW DIAL to see DIAL-related items.
  171. Type SHOW MODEM to see modem-related items.
  172.  
  173. (/home/ishikawa/) C-Kermit>conn
  174. Connecting to /dev/ttyS0, speed 38400
  175.  Escape character: Ctrl-\ (ASCII 28, FS): enabled
  176. Type the escape character followed by C to get back,
  177. or followed by ? to see other options.
  178. ?Carrier required but not detected.
  179. ***********************************
  180.  Hint: To CONNECT to a serial device that
  181.  is not presenting the Carrier Detect signal,
  182.  first tell C-Kermit to:
  183.  
  184.    SET CARRIER-WATCH OFF
  185.  
  186. ***********************************
  187.  
  188. (/home/ishikawa/) C-Kermit>(/home/ishikawa/) C-Kermit>set carrier-watch
  189. off
  190. (/home/ishikawa/) C-Kermit>conn
  191. Connecting to /dev/ttyS0, speed 38400
  192.  Escape character: Ctrl-\ (ASCII 28, FS): enabled
  193. Type the escape character followed by C to get back,
  194. or followed by ? to see other options.
  195. ----------------------------------------------------
  196.  
  197. (Back at duron)
  198. ----------------------------------------------------
  199.  
  200.  (*CI comment: The speed was OK by looking at "show comm" output
  201.   which was omitted here. *)
  202.  
  203. (/home/ishikawa/) C-Kermit>set parity hardware
  204. (/home/ishikawa/) C-Kermit>conn
  205. Connecting to /dev/ttyS0, speed 38400
  206.  Escape character: Ctrl-\ (ASCII 28, FS): enabled
  207. Type the escape character followed by C to get back,
  208. or followed by ? to see other options.
  209. ----------------------------------------------------
  210.  
  211. (Back at duron)
  212. ----------------------------------------------------
  213.  
  214.  (*CI comment: The speed was OK by looking at "show comm" output
  215.   which was omitted here. *)
  216.  
  217. (/home/ishikawa/) C-Kermit>set speed 19200
  218. /dev/ttyS0, 19200 bps
  219. (/home/ishikawa/) C-Kermit>conn
  220. Connecting to /dev/ttyS0, speed 19200
  221.  Escape character: Ctrl-\ (ASCII 28, FS): enabled
  222. Type the escape character followed by C to get back,
  223. or followed by ? to see other options.
  224. ----------------------------------------------------
  225.  
  226. (Back at duron)
  227. ----------------------------------------------------
  228. (/home/ishikawa/) C-Kermit>show comm
  229.  
  230.  
  231. *****************************************************************
  232. Aiiiieeee
  233. (CI comment: Please note the  speed here. It is reset to 1800 !!! )
  234. *****************************************************************
  235.  
  236. Communications Parameters:
  237.  Line: /dev/ttyS0, speed: 1800, mode: local, modem: generic  <===!!!
  238. HERE
  239.  Parity: hardware even, stop-bits: (default) (8E1)
  240.  Duplex: full, flow: none, handshake: none
  241.  Carrier-watch: off, close-on-disconnect: off
  242.  Lockfile: /var/lock/LCK..0
  243.  Terminal bytesize: 8, escape character: 28 (^\)
  244.  
  245.  Carrier Detect      (CD):  Off
  246.  Dataset Ready      (DSR): Off
  247.  Clear To Send      (CTS): Off
  248.  Ring Indicator      (RI):  Off
  249.  Data Terminal Ready (DTR): On
  250.  Request To Send     (RTS): On
  251.  
  252. Type SHOW DIAL to see DIAL-related items.
  253. Type SHOW MODEM to see modem-related items.
  254.  
  255. (/home/ishikawa/) C-Kermit>echo ? Text to be echoed
  256. (/home/ishikawa/) C-Kermit>echo
  257.  
  258. (/home/ishikawa/) C-Kermit>quit
  259. Closing /dev/ttyS0...OK
  260. duron:/home/ishikawa# exit
  261.  
  262.  
  263. PS:
  264.  
  265. The above log was recorded when there was no
  266. connection to /dev/ttyS0.
  267. The bug on RedHat 7.2 was noticied when a
  268. digital hardware serial port was directly connected
  269. to a serial port.
  270.  
  271. As a matter of fact, I checked the speed setting by
  272. "show comm" output after each command of the above sequence,
  273. and I am not entirely sure what triggers the bug.
  274. But the bug is real.
  275. I have been bitten with this many times
  276. in the past several weeks.
  277. My guess is that the change of speed from the prompt and/or
  278. parity setting may trigger the bug, but
  279. maybe others might have seen the
  280. same bug on GNU/Linux and input from other people
  281. might help us in pinpointing the cause of the bug.
  282.  
  283. PPS: Or maybe certain data structure change
  284. in the linux kernel might have made the
  285. previously correct kermit code no longer valid, etc..
  286.  
  287.  
  288.